import request from '@/api/request'

// 购物车列表
function cartList(data) {
    return request({
        method: 'get',
        url: '/cart/cartList',
        data
    })
}

// 删除商品
function deleteAction(data) {
    return request({
        method: 'get',
        url: '/cart/deleteAction',
        data
    })
}

// 提交订单
function submitAction(data) {
    return request({
        method: 'post',
        url: '/order/submitAction',
        data
    })
}

// 订单确认界面数据获取
function detailAction(data) {
    return request({
        method: 'get',
        url: '/order/detailAction',
        data
    })
}

export {
    cartList,
    deleteAction,
    submitAction,
    detailAction
}